<div class="layui-card">
    <div class="layui-card-body">

        <form class="layui-form" action="{:url('admin/system.mailer/templatePost')}" method="post" id="cp-form">

            <div class="layui-tab layui-tab-brief">
                <ul class="layui-tab-title">
                    <li class="{if request()->action() == 'index'}layui-this{/if}">
                        <a href="{:url('admin/system.mailer/index')}">邮箱配置</a>
                    </li>
                    <li class="{if request()->action() == 'template'}layui-this{/if}">
                        <a href="{:url('admin/system.mailer/template')}?template_key=verification_code">数字验证码邮件模板</a>
                    </li>
                </ul>
                <div class="layui-tab-content">
                    <div class="layui-row">
                        <div class="layui-col-md7">
                            <div class="layui-tab-item layui-show">

                                <div class="layui-form-item">
                                    <label class="layui-form-label"> 发件人  <span class="request-tips">*</span></label>
                                    <div class="layui-input-block">
                                        <input type="text" name="subject" value="{$subject|default=''}" required lay-verify="required" placeholder="发件人" autocomplete="off" class="layui-input">
                                    </div>
                                </div>

                                <div class="layui-form-item">
                                    <label class="layui-form-label">邮件模版<span class="request-tips">*</span></label>
                                    <div class="layui-input-block">
                                        <input type="hidden" name="template_key" value="verification_code">
                                        <script id="container" type="text/plain" name="template" >{$template|default=""|raw}</script>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="formDemo">保存</button>
                </div>
            </div>
        </form>
    </div>
</div>
